"""
开发写的登录功能

 接下来：测试人员，写自动化测试代码 来测试登录
"""


# 要测试的函数  登录接口  登录功能
def login(username=None, password=None):
    if username is None or password is None:
        return {"code": "400", "msg": "用户名或密码为空"}
    if username == 'momo' and password == '123':
        return {"code": "200", "msg": "登录成功"}
    return {"code ": "300", "msg": "用户名或密码错误"}
